package com.atguigu.spzx.manager.mapper.product;

import com.atguigu.spzx.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductSkuMapper {
    void batchSave(List<ProductSku> productSkuList);

    List<ProductSku> findSkusByProductId(Long productId);

    void updateById(ProductSku productSku);

    void deleteByProductId(Long id);


    void updateStatus(@Param("productId") Long id, @Param("status") Integer status);
}
